package com.note.app.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.Column;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 标签DTO
 */
@Data
@Schema(description = "标签信息")
public class TagDTO {
    
    @Schema(description = "标签ID", example = "1")
    private Long id;
    
    @Schema(description = "标签名称", example = "Java")
    private String name;
    
    @Schema(description = "所属用户ID", example = "1")
    private Long userId;

    @Column(name = "created_at")
    @Schema(description = "创建时间", example = "2023-10-01T12:00:00")
    private LocalDateTime createdAt;

    @Column(name = "updated_at")
    @Schema(description = "更新时间", example = "2023-10-01T12:00:00")
    private LocalDateTime updatedAt;
} 